Node-RED block in Snap4City Microservice library node-red-contrib-snap4city-user is "orion-out-api-v2">
Provides a node for sending generic json payload to Fiware Orion context broker Version 2.
msg.auth.k1
(see example below)msg.auth.k2 (see example below)msg.auth.apikey (see example below)msg.auth.basicAuth (see example below)
If this parameter is not specified, the Snap4City SSo AccessToken will be used (based on (cloud scenario)
the logged user credentials or (edge scenario) the specified username/password) in the form of "Authorization: Bearer <credential>"
msg.payload ={"id":"test-edge-device","type":"test-edge-device","temperature":{"value":"14","type":"float"},"noise":{"value":"14","type":"integer"}};
NOTE: if msg.payload.type and msg.payload.id are not present, the "Device Type" and "Device Identifier" has to be specified in the Configuration section (mandatory)
msg.payload = [{"temperature":{"value":"16","type":"float"},"noise":{"value":"16","type":"integer"}}];
NOTE: the "Device Type" and "Device Identifier" has to be specified in the Configuration section (mandatory)
msg.auth={"k1": "1ef0e5e8-bf0c-48d4-9462-0aa4cfcf5e19","k2": "b2b34425-9d97-4fc5-818d-2d6cac2314a6","apikey":"apikey","basicAuth": "basicAuthKey"};
The node receive a JSON as described in the Inputs section and send a message to the Fiware Broker context broker based on the specified Configuration. If the values are not present in the input JSON an error is generated.